View Javadoc
1 /* 2 * Copyright (c) 2001 by 3 * Siegfried GOESCHL <mailto:siegfried.goeschl@itserv.at>; 4 * and Dima STADNIK <mailto:5d5@mail.ru>; 5 * 6 * This program is free software. 7 * 8 * You may redistribute it and/or modify it under the terms of the GNU 9 * General Public License as published by the Free Software Foundation. 10 * Version 2 of the license should be included with this distribution in 11 * the file LICENSE, as well as License.html. If the license is not 12 * included with this distribution, you may find a copy at the FSF web 13 * site at 'www.gnu.org' or 'www.fsf.org', or you may write to the 14 * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139 USA. 15 * 16 * THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, 17 * NOT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR 18 * OF THIS SOFTWARE, ASSUMES _NO_ RESPONSIBILITY FOR ANY 19 * CONSEQUENCE RESULTING FROM THE USE, MODIFICATION, OR 20 * REDISTRIBUTION OF THIS SOFTWARE. 21 */ 22 23 package test.junit.extensions.util; 24 25 import junit.framework.*; 26 import junit.extensions.*; 27 import junit.extensions.util.Parameters; 28 29 /*** 30 * Tests Parameters class. 31 * 32 * @author Siegfried GOESCHL 33 * @author Dima STADNIK 34 */ 35 public class ParametersTest extends ConfigurableTestCase { 36 37 public ParametersTest(String name) { 38 super(name); 39 } 40 41 public static Test suite() { 42 TestSuite suite= new TestSuite(); 43 suite.addTest(new ParametersTest("testParameters")); 44 return suite; 45 } 46 47 public void testParameters() { 48 System.setProperty("junit.parameters", getString("parameters")); 49 assertTrue(Parameters.getParameters("junit.parameters").length > 0); 50 } 51 52 public static void main(String args[]) { 53 junit.textui.TestRunner.run(ParametersTest.class); 54 } 55 }

This page was automatically generated by Maven